package com.yunhe.java.Day09;

/**
 * Created by Administrator on 2017/8/2 0002.
 */
public class stringtrim {
    public static void main(String[] args) {
        String str= " sss  DSd f ";
       String str1= str.trim();
        System.out.println(str1);
//       boolean boo= str.trim().isEmpty();
//        System.out.println(boo);

        str= str.toLowerCase();
         String s=String.valueOf(str.charAt(1));
         String str2=str.replaceFirst(s,s.toUpperCase());
        System.out.println(str2);
    }
}
